package views;

import java.awt.Image;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;

public class GuiUtil {

    public Image alive_character_night;
    public Image alive_character_day;

    private static GuiUtil guiUtil;

    private GuiUtil() throws IOException{
        alive_character_day = ImageIO.read(new File("./images/alive_day.png"));
        alive_character_night = alive_character_day;
        //alive_character_night = ImageIO.read(new File("./images/alive_night.png"));
    }

    public static GuiUtil getGuiUtil(){
        if(guiUtil==null)
            try {
            guiUtil = new GuiUtil();
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }
        return guiUtil;
    }
}
